//
//  LevelData.h
//  BoxupPuzzle
//
//  Created by Nguyen Van Tien on 8/24/13.
//
//

#ifndef __BoxupPuzzle__LevelData__
#define __BoxupPuzzle__LevelData__


//TODO: using dynamic array instead
#define MAX_LEVEL_WIDTH 20
#define MAX_LEVEL_HEIGHT 20

#include <iostream>
#include "cocos2d.h"

using namespace cocos2d;

class LevelData : public CCObject
{
public:
    int m_LevelMatrix[MAX_LEVEL_WIDTH][MAX_LEVEL_HEIGHT];
    int m_iLevelIndex;
    int m_iColumn;
    int m_iRow;
   
    static LevelData* CreateInstance();
    void Deserialize(FILE* file);
    int GetLevelMatrixValue(int iRow, int iColumn);
};


#endif /* defined(__BoxupPuzzle__LevelData__) */
